package com.ecar.common.poi;

import org.apache.poi.ss.usermodel.CellStyle;

import java.io.File;
import java.util.List;

/**
 * Created by admin on 2016/11/29.
 */
public abstract class Excel {

	public Excel() { }

	public abstract Excel createSheet(String sheetName);

	public abstract Excel createSheet(String sheetName, int defaultRowHeight, int defaultColumnWidth);

	public abstract Excel addHeader(List headValues, boolean isFilter) throws Exception;

	public abstract Excel addRow(List rowvalues);

	public abstract Excel addRow(Object... rowvalues);

	public abstract boolean write(File file);

	public abstract CellStyle getTextStyle();

	public abstract Excel setTextStyle();

	public abstract CellStyle getDateStyle();

	public abstract Excel setDateStyle();

	public abstract CellStyle getDoubleStyle();

	public abstract Excel setDoubleStyle();

	public abstract CellStyle getIntStyle();

	public abstract Excel setIntStyle();
}
